package lgq.service;

import java.util.List;

import dao.TrainWayDAO;
import dao.impl.TrainWayDAOImpl;

import model.TrainWay;

public class TrainWayManager {
	TrainWayDAO twd=new TrainWayDAOImpl();
	public List<TrainWay> getAll()
	{
		return twd.getAll();
	}
	public TrainWay getById(int id)
	{
		return twd.getById(id);
	}
	public TrainWay getByName(String name)
	{
		return twd.getByName(name);
	}
}
